package com.fare.taluo.application;

import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.apache.hadoop.hbase.filter.Filter;

import com.fare.taluo.core.domain.entity.crawl.FreightPriceEntity;
import com.fare.taluo.vo.core.FreightPriceEntityVO;
import com.fare.taluo.vo.core.HBaseFilterVO;
import com.fare.taluo.vo.core.PlaneInfo;

public interface FreightPriceApplication {
	public List<FreightPriceEntityVO> findByConditions(String tableName,
			String startRowKey, String endRowKey);
	public List<PlaneInfo> findByConditionsToPlaneInfo(String tableName,
			String startRowKey, String endRowKey,List<Filter> list);
	public List<PlaneInfo> findByCustomFilters(String tableName,
			String startRowKey, String endRowKey, List<HBaseFilterVO> voList,
			List<Filter> filterList);
	public PlaneInfo findInfoToExcel(String tableName,
			String startRowKey, String endRowKey,List<Filter> list,String currentDate);
	public PlaneInfo findInfoToExcel(String tableName,
			String startRowKey, String endRowKey,String currentDate, List<HBaseFilterVO> voList, List<Filter> filters);
	public PlaneInfo findInfoToExcel(String hbaseKey,
			String fromCity, String toCity,String flightDate,String carrierKey,String currentDate,String flightNo);
	
	
	//for mysql data
	//
	public List<PlaneInfo> findByConditions(String hbaseKey, String fromCity, String toCity, String flightBatchDate);
	
	public List<PlaneInfo> findPlaneInfoProperty(String hbaseKey,String fromCity, String toCity, String flightBatchDate, String flightNo);
}
